//
//  Interface.m
//  Virtual Network Manager
//
//  Created by Brandon on 4/9/12.
//  Copyright (c) 2012 PWNu8s. All rights reserved.
//

#import "VMNet.h"

@implementation VMNet
- (id)initWithDictionary:(NSDictionary *) dict{
    NSLog(@"Creating VMNet");
    self = [super init];
    vmEnabled = [dict objectForKey:@"vmEnabled"];
    vmID    = [dict objectForKey:@"vmID"];
    natEnabled    = [dict objectForKey:@"natEnabled"];
    vmLabel = [dict objectForKey:@"vmLabel"];
    dhcpNetwork = [dict objectForKey:@"dhcpNetwork"];
    dhcpSubnet = [dict objectForKey:@"dhcpSubnet"];
    dhcpBroadcast = [dict objectForKey:@"dhcpBroadcast"];
    dhcpRange1 = [dict objectForKey:@"dhcpRange1"];
    dhcpRange2 = [dict objectForKey:@"dhcpRange2"];
    dhcpEnabled = [dict objectForKey:@"dhcpEnabled"];
    dnsServer1 = [dict objectForKey:@"dnsServer1"];
    dnsServer2 = [dict objectForKey:@"dnsServer2"];
    dnsDefaultLeaseTime = [dict objectForKey:@"dnsDefaultLeaseTime"];
    dnsMaxLeaseTime = [dict objectForKey:@"dnsMaxLeaseTime"];
    dnsDomain = [dict objectForKey:@"dnsDomain"];
    //NSLog(@"MURRR %@",dhcpNetwork);
    return self;
}


@end
